POV-Ray : Newsgroups : povray.unofficial.patches : mega-newbie seeks mega-clue : Re: mega-newbie seeks mega-clue Server Time
2 Sep 2024 00:19:30 EDT (-0400)
  Re: mega-newbie seeks mega-clue  
From: Anton Sherwood
Date: 20 Aug 2000 12:56:54
Message: <39A00F7A.546A262F@pobox.com>
> Anton Sherwood <bro### [at] poboxcom> wrote:
> > Why does this show nothing?

Chris Huff wrote:
> You don't specify a threshold, so it defaults to 0. Your function only
> evaluates to 0 at a few points(if it ever does),

Eh?  -PigFun + r^2 ought to be negative somewhere within the unit
sphere.

> so [no] surfaces are found.
> Try using a threshold of 0.5 for some results.

Okay.

Why does this show nothing?

#declare PigFun = function {
                pigment {
                        granite
                        color_map { [0 rgb 0] [1 rgb 1] }
                        }
                }

isosurface {
        function { -PigFun + (sqr(x)+sqr(y)+sqr(z)) }
        threshold 0.5				// likewise 1
        contained_by { sphere { 0,2 }}
        pigment { rgb 1 }
        }

-- 
Anton Sherwood  --  br0### [at] p0b0xcom  --  http://ogre.nu/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.